﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Collections;

namespace Agresso.Interface.Layer.Domain
{
    public class algbatchinput
    {
        public string account = string.Empty;
        public string accountable = string.Empty;
        public string address = string.Empty;
        public int allocation_key = 0;
        public decimal amount = 0;
        public int amount_set = 0;
        public string apar_id = string.Empty;
        public string apar_id_ref = string.Empty;
        public string apar_name = string.Empty;
        public string art_descr = string.Empty;
        public string article = string.Empty;
        public string att_1_id = string.Empty;
        public string att_2_id = string.Empty;
        public string att_3_id = string.Empty;
        public string att_4_id = string.Empty;
        public string att_5_id = string.Empty;
        public string att_6_id = string.Empty;
        public string att_7_id = string.Empty;
        public string bank_account = string.Empty;
        public string batch_id = string.Empty;
        public string clearing_code = string.Empty;
        public string client = string.Empty;
        public string client_ref = string.Empty;
        public DateTime confirm_date = DateTime.Today;
        public string contract_id = string.Empty;
        public string control = string.Empty;
        public decimal cur_amount = 0;
        public string currency = string.Empty;
        public string del_met_descr = string.Empty;
        public string del_term_descr = string.Empty;
        public string deliv_addr = string.Empty;
        public string deliv_attention = string.Empty;
        public string deliv_countr = string.Empty;
        public DateTime deliv_date = DateTime.Today;
        public string deliv_method = string.Empty;
        public string deliv_terms = string.Empty;
        public string delivery_descr = string.Empty;
        public string dim_1 = string.Empty;
        public string dim_2 = string.Empty;
        public string dim_3 = string.Empty;
        public string dim_4 = string.Empty;
        public string dim_5 = string.Empty;
        public string dim_6 = string.Empty;
        public string dim_7 = string.Empty;
        public string dim_value_1 = string.Empty;
        public string dim_value_2 = string.Empty;
        public string dim_value_3 = string.Empty;
        public string dim_value_4 = string.Empty;
        public string dim_value_5 = string.Empty;
        public string dim_value_6 = string.Empty;
        public string dim_value_7 = string.Empty;
        public decimal disc_percent = 0;
        public decimal discount = 0;
        public string ean = string.Empty;
        public decimal exch_rate = 0;
        public string ext_ord_ref = string.Empty;
        public string ext_order_id = string.Empty;
        public string intrule_id = string.Empty;
        public int line_no = 0;
        public string location = string.Empty;
        public string long_info1 = string.Empty;
        public string long_info2 = string.Empty;
        public string lot = string.Empty;
        public string main_apar_id = string.Empty;
        public string mark_attention = string.Empty;
        public string markings = string.Empty;
        public DateTime obs_date = DateTime.Today;
        public DateTime order_date = DateTime.Today;
        public long order_id = 0;
        public string order_type = string.Empty;
        public string pay_method = string.Empty;
        public string pay_temp_id = string.Empty;
        public int period = 0;
        public string place = string.Empty;
        public string province = string.Empty;
        public string rel_value = string.Empty;
        public int rent_flag = 0;
        public string responsible = string.Empty;
        public string responsible2 = string.Empty;
        public int sequence_no = 0;
        public int sequence_ref = 0;
        public string serial_no = string.Empty;
        public string short_info = string.Empty;
        public string status = string.Empty;
        public string sup_article = string.Empty;
        public string swift = string.Empty;
        public string tax_code = string.Empty;
        public string tax_system = string.Empty;
        public int template_id = 0;
        public string terms_descr = string.Empty;
        public string terms_id = string.Empty;
        public string text1 = string.Empty;
        public string text2 = string.Empty;
        public string text3 = string.Empty;
        public string text4 = string.Empty;
        public string trans_type = string.Empty;
        public string unit_code = string.Empty;
        public string unit_descr = string.Empty;
        public decimal unit_price = 0;
        public decimal value_1 = 0;
        public string vat_reg_no = string.Empty;
        public int voucher_ref = 0;
        public string voucher_type = string.Empty;
        public string warehouse = string.Empty;
        public string wf_state = string.Empty;
        public string zip_code = string.Empty;
        public int agrtid = 0;
        //public IList Details = new ArrayList();

        public algbatchinput() { }
        public algbatchinput(SqlDataReader rd)
        {
            //client_ref = Convert.ToDateTime(rd["client_ref"]);
            //deliv_countr = Convert.ToDateTime(rd["deliv_countr"]);
            //markings = Convert.ToDateTime(rd["markings"]);
            //obs_date = Convert.ToDateTime(rd["obs_date"]);
            //allocation_key = Convert.ToDecimal(rd["allocation_key"]);
            //control = Convert.ToDecimal(rd["control"]);
            //dim_value_7 = Convert.ToDecimal(rd["dim_value_7"]);
            //disc_percent = Convert.ToDecimal(rd["disc_percent"]);
            //ean = Convert.ToDecimal(rd["ean"]);
            //unit_descr = Convert.ToDecimal(rd["unit_descr"]);
            //unit_price = Convert.ToDecimal(rd["unit_price"]);
            //address = Convert.ToInt32(rd["address"]);
            //amount = Convert.ToInt32(rd["amount"]);
            //intrule_id = Convert.ToInt32(rd["intrule_id"]);
            //order_date = Convert.ToInt32(rd["order_date"]);
            //pay_temp_id = Convert.ToInt32(rd["pay_temp_id"]);
            //rel_value = Convert.ToInt32(rd["rel_value"]);
            //responsible2 = Convert.ToInt32(rd["responsible2"]);
            //sequence_no = Convert.ToInt32(rd["sequence_no"]);
            //tax_system = Convert.ToInt32(rd["tax_system"]);
            //vat_reg_no = Convert.ToInt32(rd["vat_reg_no"]);
            //zip_code = Convert.ToInt32(rd["zip_code"]);
            //account = rd["account"].ToString();
            //accountable = rd["accountable"].ToString();
            //amount_set = rd["amount_set"].ToString();
            //apar_id = rd["apar_id"].ToString();
            //apar_id_ref = rd["apar_id_ref"].ToString();
            //apar_name = rd["apar_name"].ToString();
            //art_descr = rd["art_descr"].ToString();
            //article = rd["article"].ToString();
            //att_1_id = rd["att_1_id"].ToString();
            //att_2_id = rd["att_2_id"].ToString();
            //att_3_id = rd["att_3_id"].ToString();
            //att_4_id = rd["att_4_id"].ToString();
            //att_5_id = rd["att_5_id"].ToString();
            //att_6_id = rd["att_6_id"].ToString();
            //att_7_id = rd["att_7_id"].ToString();
            //bank_account = rd["bank_account"].ToString();
            //batch_id = rd["batch_id"].ToString();
            //clearing_code = rd["clearing_code"].ToString();
            //client = rd["client"].ToString();
            //confirm_date = rd["confirm_date"].ToString();
            //contract_id = rd["contract_id"].ToString();
            //cur_amount = rd["cur_amount"].ToString();
            //currency = rd["currency"].ToString();
            //del_met_descr = rd["del_met_descr"].ToString();
            //del_term_descr = rd["del_term_descr"].ToString();
            //deliv_addr = rd["deliv_addr"].ToString();
            //deliv_attention = rd["deliv_attention"].ToString();
            //deliv_date = rd["deliv_date"].ToString();
            //deliv_method = rd["deliv_method"].ToString();
            //deliv_terms = rd["deliv_terms"].ToString();
            //delivery_descr = rd["delivery_descr"].ToString();
            //dim_1 = rd["dim_1"].ToString();
            //dim_2 = rd["dim_2"].ToString();
            //dim_3 = rd["dim_3"].ToString();
            //dim_4 = rd["dim_4"].ToString();
            //dim_5 = rd["dim_5"].ToString();
            //dim_6 = rd["dim_6"].ToString();
            //dim_7 = rd["dim_7"].ToString();
            //dim_value_1 = rd["dim_value_1"].ToString();
            //dim_value_2 = rd["dim_value_2"].ToString();
            //dim_value_3 = rd["dim_value_3"].ToString();
            //dim_value_4 = rd["dim_value_4"].ToString();
            //dim_value_5 = rd["dim_value_5"].ToString();
            //dim_value_6 = rd["dim_value_6"].ToString();
            //discount = rd["discount"].ToString();
            //exch_rate = rd["exch_rate"].ToString();
            //ext_ord_ref = rd["ext_ord_ref"].ToString();
            //line_no = rd["line_no"].ToString();
            //location = rd["location"].ToString();
            //long_info1 = rd["long_info1"].ToString();
            //long_info2 = rd["long_info2"].ToString();
            //lot = rd["lot"].ToString();
            //main_apar_id = rd["main_apar_id"].ToString();
            //mark_attention = rd["mark_attention"].ToString();
            //order_id = rd["order_id"].ToString();
            //order_type = rd["order_type"].ToString();
            //pay_method = rd["pay_method"].ToString();
            //period = rd["period"].ToString();
            //place = rd["place"].ToString();
            //province = rd["province"].ToString();
            //rent_flag = rd["rent_flag"].ToString();
            //responsible = rd["responsible"].ToString();
            //sequence_ref = rd["sequence_ref"].ToString();
            //serial_no = rd["serial_no"].ToString();
            //short_info = rd["short_info"].ToString();
            //status = rd["status"].ToString();
            //sup_article = rd["sup_article"].ToString();
            //swift = rd["swift"].ToString();
            //tax_code = rd["tax_code"].ToString();
            //template_id = rd["template_id"].ToString();
            //terms_id = rd["terms_id"].ToString();
            //text1 = rd["text1"].ToString();
            //text2 = rd["text2"].ToString();
            //text3 = rd["text3"].ToString();
            //text4 = rd["text4"].ToString();
            //trans_type = rd["trans_type"].ToString();
            //unit_code = rd["unit_code"].ToString();
            //value_1 = rd["value_1"].ToString();
            //voucher_ref = rd["voucher_ref"].ToString();
            //voucher_type = rd["voucher_type"].ToString();
            //warehouse = rd["warehouse"].ToString();
            //wf_state = rd["wf_state"].ToString();
            //agrtid = rd["agrtid"].ToString();
            //terms_descr = rd["terms_descr"].ToString();
            //ext_order_id = rd["ext_order_id"].ToString();
        }
    }
}
